package esms.manager;

import java.util.HashMap;

import org.apache.log4j.Logger;
import com.thoughtworks.selenium.DefaultSelenium;

public class RunTimeContext {
	private static Logger log = Logger.getLogger("RunTimeContext");
	
	private static HashMap<String,DefaultSelenium> browsers;
	public static final String ESMS = "esms";
	
	static{
		browsers = new HashMap<String,DefaultSelenium>();
	}
	
	public static void addBrowser(String key,DefaultSelenium selenium){
		browsers.put(key, selenium);
	}
	
	public static void removeBrowser(DefaultSelenium selenium){
		browsers.remove(selenium);
	}
	
	public static DefaultSelenium getBrowser(String key){
		return browsers.get(key);
	}
}
